@echo off
cd %2

git pull

if "%1" == "-w" (
  set msg="[Tiny11] Wake up"
  echo 1 > tiny11
) else if "%1" == "-s" (
  set msg="[Tiny11] Stand by"
  echo 0 > tiny11
) else (
    echo Invalid argument
)

git add *
git commit -m %msg%
git push
